package main

import (
	"cron/cron"
	"log"
	"time"
)

func main() {
	cron.NewCron(cron.TimeConfig{
		BeginAt: time.Now(),
		//Interval: []time.Duration{
		//	2 * time.Second,
		//},
		Cron: &cron.FixTime{
			Mouth:   nil,
			WeekDay: nil,
			Day:     nil,
			Hour:    []uint{17},
			Minute:  nil,
			Second:  []uint{5, 6, 7, 8, 15, 16, 17, 18, 25, 26, 27, 28, 35, 36, 37, 38, 45, 46, 47, 48, 55, 56, 57, 58},
		},
	}, &cron.Context{}, func(ctx *cron.Context) error {
		log.Println("do func")
		return nil
	}).Start()
}
